<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
        <title>Fuck the police!!!</title>
        <script type="text/javascript">
            title = "";
            comment = "";
            legal_num_char_title = 40;
            legal_num_char_comment = 200;
            function tryVars(){
                num_char_title = document.get_comment_form.titulo_form.value.length;
                num_char_comment = document.get_comment_form.comentario_form.value.length;
                if ((document.get_comment_form.mail_form.value.indexOf('@', 0) == -1) || (document.get_comment_form.mail_form.value.length < 5)) {
                    alert("La direccion de correo electronico no es valida.");
                }
                if ((num_char_title > legal_num_char_title) && (num_char_title > 0)){
                    document.get_comment_form.titulo_form.value = title;
                    alert("El titulo no es valido.");
                }else{
                    title = document.get_comment_form.titulo_form.value;
                }
                if ((num_char_comment > legal_num_char_comment) && (num_char_comment > 0)){
                    document.get_comment_form.comentario_form.value = comment;
                    alert("El comentario no es valido.");
                }else{
                    comment = document.get_comment_form.comentario_form.value;
                }
            }
        </script>
        <title>Fuck the police!!!</title>
    </head>
    <body>
        <?php
            $data = $_POST['data'];
            $_SESSION['lat'] = $data[0];
            $_SESSION['lng'] = $data[1];
            echo "ATesting Google Code!";
        ?>
        <form name="get_comment_form" method="post" action="AñadePunto.php">
            <p><b>Email</b> <input type="text" name="mail_form" size="40"></p>
            <p><b>Titulo</b> <input type="text" name="titulo_form" size="30"></p>
            <p><b>Comentario</b><textarea name="comentario_form" rows="5" cols="40"></textarea><p>
            <p><input type="button" value="Enviar" onClick="tryVars()"></p>
        </form>
    </body>
</html>